#include<stdio.h>
int main()
{
    int s,w,y;
    int count=1;
    //s+w+y=50;
    for (s=1;s<10;s++)
    {
    for (w=1;w<20;w++)
    {
    y=50-s-w;
    if(10*s+5*w+y==100)
    {
    printf("x = %d, ",s);
    printf("y = %d, ",w);
    printf("z = %d\n",y);
    printf("count = %d\n",count);
    count++;
    }
    }   
    }   
}
